<?php
	echo '<h2>'.$_SESSION['username']." <a href=\"/users/logout\">logout</a> </h2>";
?>
	<form name="handUpload" action="/users/uploadHands" method="post" enctype="multipart/form-data">
    	<?php echo $form->file('HandHistory.archive',array('before'=>'<div><lebal>Hand history Archive (zip or tar)</label></div>'));?>
        <?php echo $form->submit();?>
    </form>
<?php
	if($monthHandsSeen!=0){
?></div>
<ul id="allTimeStats">
<li class="handsSeen">All Time:  Hands Seen <?php echo $monthHandsSeen; ?></li>
<li class="vpp">All Time:  VPIP <?php echo $monthVPP;?> (<?php echo number_format(($monthVPP/$monthHandsSeen)*100);?>%)</li>
<li class="pfr">All Time:  PFR <?php echo $monthPFR;?> (<?php echo number_format(($monthPFR/$monthHandsSeen)*100);?>%)</li>
<?php if($afTotal){ ?>
<li>Agression Factor: 
<?php
			$raisePCT =($afRaise/$afTotal*100);
			$betPCT =($afBet/$afTotal*100);
		    $callPCT =($afCall/$afTotal*100);
			$callPCT =($callPCT==0) ? 1 : $callPCT;
	
			echo number_format((($raisePCT + $betPCT) / $callPCT) ,1);
?>
</li>
<?php }//end agression factor ?>
<li>Showdown: WTSD: <?php echo $wtsd;?> WTSDW: <?php echo $wtsdw;?></li>
<br style="clear: both"/>
</div>
<?php
	}
?>